package com.globalwave.datasync.convertor.impl;

import java.sql.Types;
import java.util.HashMap;
import java.util.Map;

import com.globalwave.datasync.ConvertorInf;

public class DictConvertor implements ConvertorInf {

	private static Map<Integer, String> map = new HashMap<Integer, String>() ;
	
	static {
		map.put(new Integer(1), "A") ;
		map.put(new Integer(2), "B") ;
		map.put(new Integer(3), "C") ;
	}
	
	@Override
	public Object valueOf(Object input) {
		return map.get((Integer)input);
	}

	@Override
	public int outputType() {
		return Types.VARCHAR;
	}
}
